<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>后台管理</title>



<link href="static/css/bass.css" rel="stylesheet" type="text/css">
<script src="static/js/jquery.js" type="text/javascript"></script>


</head>

<body>
<div class="pageHeader">
  <h3><i class="fa fa-table"></i> 栏目管理</h3>
    <div class="fr">
      <a href="javascript:history.go(-1);location.reload();" class="btn">返回</a>    
    </div>
</div>



<div class="fromBody">
<form action="?dopost=save" method="post" class="form-validate">
<input type="hidden" name="tid" value="<?php echo $art['tid']?>"/>
  <table width="100%" class="tableAAA">
      <tr>
          <th align="right" valign="top" width="150">栏目标题：</th>
          <td>
          <input type="text" name="typename" value="<?php echo $art['typename']?>" class="input-xlarge"/>
          
          </td>
        </tr>
        <tr>
          <th align="right" valign="top" width="150">属性：</th>
          <td>
          <label>是否显示：<input type="checkbox" name="display" value="1" <?php if($art['display'] == 1 ){echo 'checked';}?> />  </label> 
          &nbsp;
          排序（升序）：<input type="text" name="sort" class="input-mini" value="<?php echo $art['sort']?>">
          
          </td>
        </tr>
        
    <tr>
            <th align="right" valign="top">所属分类:</th>
        <td>
            <select name="pid"  class="input-xlarge">
                  <option value="0">----顶级栏目----</option>
                  <?php 
                  foreach($typelist as $k => $v ){

                    echo "<option value=\"{$v['tid']}\" {$v['_selected']} > {$v['_prefix']} {$v['typename']} </option>";
                  }
                    ?>
                  

            </select> 
        </td>
        <tr>
          <th align="right" valign="top">列表图片：</th>
          <td>
          <div kindeditor="uploadpic" class="uploadpic">
            <button type="button" kebtn="">上传图片</button>
          <img src="<?php echo $art['litpic']?>" keimg="" style="max-width:100px; max-height:100px;">
            <input type="text" name="litpic" value="<?php echo $art['litpic']?>" keipt="" class="input-xlarge">
            
      </div>
          
          </td>
        </tr>
        <tr>
          <th align="right" valign="top">栏目类型：</th>
          <td>
          <label><input type="radio" name="type" value="1"  class="input-xlarge" <?php echo ($art['type']==1)?'checked':'';?>  /> 栏目列表</label><br/>
          <label><input type="radio" name="type" value="2"  class="input-xlarge" <?php echo ($art['type']==2)?'checked':'';?>  /> 栏目封面</label><br/>
          <label><input type="radio" name="type" value="3"  class="input-xlarge" <?php echo ($art['type']==3)?'checked':'';?>  /> 跳转地址</label><br/>
          <input type="text" name="jumpurl" value="<?php echo $art['jumpurl']?>" id="jumpurl"  class="input-xlarge"/>
          
          
          </td>
        </tr>
        <tr>
          <th align="right" valign="top">列表模板：</th>
          <td>
          <input type="text" name="templist" value="<?php echo $art['templist']?>"  class="input-xlarge"/>
          
          </td>
        </tr>
        <tr>
          <th align="right" valign="top">封面模板：</th>
          <td>
          <input type="text" name="tempindex" value="<?php echo $art['tempindex']?>"  class="input-xlarge"/>
          
          </td>
        </tr>
        <tr>
          <th align="right" valign="top">文章模板：</th>
          <td>
          <input type="text" name="tempart" value="<?php echo $art['tempart']?>"  class="input-xlarge"/>
          
          </td>
        </tr>
        

        
        <tr>
          <th align="right" valign="top">关键字:</th>
          <td><textarea name="keywords"  style="width:80%;" rows="3"><?php echo $art['keywords']?></textarea></td>
        </tr>
        <tr>
          <th align="right" valign="top">描述:</th>
          <td><textarea name="description"  style="width:80%;" rows="3"><?php echo $art['description']?></textarea></td>
        </tr>
        <tr>
          <th align="right" valign="top">正文:</th>
          <td><textarea name="body" kindeditor style="width:80%; min-width:700px;height:400px;_visibility:hidden;"><?php echo $art['body']?></textarea></td>
        </tr>
        <tr>
          <th align="right" valign="top">&nbsp;</th>
          <td>
          <input type="submit" value="提交" class="btn  btn-primary">
          &nbsp;
          <a class="btn" href="Javascript:window.history.go(-1)"> 取消</a>
          </td>
        </tr>
    </table>
    <div style="height:100px;"></div>
</form>
</div>
<div class="pages">
  
</div>



<!-- 插件 -->
<script src="static/lib/My97DatePicker/WdatePicker.js"></script>

<script src="static/lib/validate/jquery.validate.js"></script>
<script src="static/lib/validate/additional-methods.js"></script>

<link href="static/lib/jbox/Metro/jbox.css" rel="stylesheet"/>
<script src="static/lib/jbox/jquery.jBox.js"></script>

<link rel="stylesheet" href="static/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="static/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="static/kindeditor/kindeditor-lrxin.js"></script>

<script src="static/js/lrxin-form.js"></script>








</body>
</html>
